package com.coolw.common.api;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.List;

/**
 * 分页结果
 *
 * @author coolw
 * @date 2024/5/15 16:58
 */
@Getter
@Setter
public class PageResponse<T extends Serializable> extends BaseDomain {
    private static final long serialVersionUID = -6738071624009136520L;

    /**
     * 当前页
     */
    private int pageNum = 1;

    /**
     * 每页多少条
     */
    private int pageSize = 10;

    /**
     * 总页数
     */
    private int totalPage = 0;

    /**
     * 总条数
     */
    private long totalSize = 0;

    /**
     * 业务数据列表
     */
    private List<T> records;
}
